package com.luojiaoj.subject

/**
 * Created with IntelliJ IDEA.
 * User: acer
 * Date: 13-1-24
 * Time: 上午11:11
 * To change this template use File | Settings | File Templates.
 */
class Category {
    String name

    Set<Subject> subject = new HashSet<Subject>()

    static hasMany = [subject: Subject]

    static constraints = {
        name unique: true, size: 0..16
        subject nullable: true
    }
}
